package net.kingborn.erp.wc.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.kingborn.erp.wc.dao.AttendanceDao;
import net.kingborn.erp.wc.model.Attendance;
import net.kingborn.erp.wc.service.AttendanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AttendanceServiceImpl implements AttendanceService {

    @Autowired
    AttendanceDao attendanceDao;

    @Override
    public Page<Attendance> pageSearch(long current, long size, JSONObject query) {
        return attendanceDao.queryPage(new Page<>(current, size), query);
    }

    @Override
    public void saveInfo(Attendance attendance) {
        attendanceDao.saveInfo(attendance);
    }
}
